Version

Month(DateTime,String,String[],String[],String[]) Method

Build the name of month from date.
Syntax
'Declaration
 
Public Overloads Shared Function Month( _
   ByVal dateTime As Date, _
   ByVal monthFormat As String, _
   ByVal semesters() As String, _
   ByVal quarters() As String, _
   ByVal months() As String _
) As String
public static string Month( 
   DateTime dateTime,
   string monthFormat,
   string[] semesters,
   string[] quarters,
   string[] months
)

Parameters

dateTime
The original System.DateTime instance.
monthFormat
The format string. Use {0} for year, {1} for semester, {2} for quarter and {3} for month location.
semesters
User defined names for semesters.
quarters
User defined names for quarters.
months
User defined names for months.

Return Value

Formated month name.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also